Skip to content

feat(list): a phone list gets its own top row, one row of pills, and bottom-sheet sort, filter and view panels that apply on ✓ - #36024

Merged
os-zhuang merged 14 commits into
mainfrom
claude/project-thread-jdeh3j
Nov 21, 2026
Merged

os-zhuang merged 14 commits into
mainfrom
claude/project-thread-jdeh3j

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Sales · project thread

repo:objectstack#1 · os-sales · session_01L6bhgXQEtN6Kp1wRKH6Fde

Fixes #35883
Fixes #35884

Clause-②: yes (widening): new optional BulkActionBar.open (@object-ui/plugin-grid); new exports PhonePanelSheet, useListPhonePanels, PHONE_CHIP, PHONE_CHIP_ACTIVE (+ types PhonePanelSheetProps, ListPhonePanels) from @object-ui/plugin-list and requestListSelection, useListPageSelecting, useListPageSelectable from @object-ui/plugin-grid; new keys in every @object-ui/i18n locale (listConditions.phone.*, sortBuilder.levelOptions / .changeField, console.objectView.select); nothing removed or renamed. (FilterPanel.advancedOffered is internal to plugin-list: FilterPanel is not a package export.)
Metadata-protocol: none
Flow: card thread builds itself (maintainer 2026-11-20 09:22:50Z rule); both cards are p1/p2 children of epic #35880 (Sales 2026-11-20 16:41Z), one PR as the seat dispatched them.

维护者速读

What changes

Below sm (useBelowSm, (max-width: 639.98px)) the object list keeps its desktop content and changes only its containers (ruling record 7045325067 on #35880).

The page's top row (app-shell layout/PhonePageBar.tsx, new): a page publishes { icon, title, end } into a small store ConsoleLayout mounts; AppHeader draws it in place of the app pill, the phone title, the search, the bell, the assistant/help group and the avatar while the page is on screen (phone only, never on a phone tab page). ObjectView publishes 「‹ · object colour tile (ObjectIconTile, as #36042 draws it on desktop) · object name · ⋮ More」. ⋮ More is ObjectViewMoreMenu (extracted from ObjectViewPageBarActions, which now uses it), with 「Select」 first.

One row of pills (PhoneListToolbar, plugin-list phone/PhoneListPanels.tsx): the host's toolbarLeading (the view switcher's phone face: the view's name, its count, the caret), Sort N, Filter N, the list's search (now a 44 px pill), then the host's conditionRowEnd. The desktop toolbar row and the condition row are not drawn below sm. A count highlights its pill; with none the pill is the icon alone. userActions.sort/filter/search: false withhold their pills, as on desktop.

Bottom sheets (PhonePanelSheet, a vaul Drawer, full height less 40 px, swipe-down closes): header 「× · title · ✓」 or 「‹」 on a sub-step. 100dvh does not shrink for the on-screen keyboard (iOS Safari; Chrome on Android's default resizes-visual), so the sheet reads visualViewport (useKeyboardInset): while the keyboard is up its bottom is the keyboard's top and its height is the visible area's less the 40 px strip, so 「✓」 and the focused field stay in view; vaul's own repositionInputs, which would also write the height, is off. 「✓」 on an untouched copy writes nothing.

  • Sort: the levels in PhoneSortLevels (plugin-list): two lines each (field over direction), a handle a finger drags (pointer events, since HTML5 drag does not fire on touch; touch-none, data-vaul-no-drag, and the pointer events stop at the handle so the sheet's swipe never sees them) or ArrowUp / ArrowDown moves (the handle keeps focus at the level's new place), and a ⋯ menu per level (change field, direction, remove); 「Add sort」 and 「Change field」 step to SortPanel / FieldList. The sheet edits a copy (useStaged) and 「✓」 hands it to applySort, the write the desktop sort chip calls (which ends in onSortChange); 「×」 drops it.
  • Filter: the conditions with a ⋯ menu (edit, remove); 「Add filter」 and edit step through FilterPanel (advancedOffered={false}). 「✓」 hands the copy to applyPanelFilters, the desktop chips' write. A filter that is not a flat AND of conditions (an or group, nesting) shows 「This view uses an advanced filter. Change it on a computer.」 and edits nothing.
  • Views: ObjectViewSwitcherMenu with phone (search at the bottom, no list height cap) and its footer's last row 「View settings」, which opens…
  • View settings: ViewSettingsContent with the desktop popover's own props; it applies each change as on desktop, so it has 「×」 only.

@object-ui/components is not changed (only a census test row is deleted). The phone levels started as a layout="stacked" in SortBuilder; after main moved, the eager ui-components chunk sat at its 347,000-byte ceiling (check:eager-closure: main alone measures what this head measures, 347,610 gzipped in a local build, which CI reads about 600 bytes lower), so any phone-only bytes there fail the gate. The phone face therefore lives in plugin-list, which no per-chunk ceiling weighs, and the desktop SortBuilder is byte-identical to main. Its touch reorder is not added for desktop (a desktop on a touch screen keeps mouse, keyboard and HTML5 drag as before).

Card selection (ObjectGrid card renderer, plugin-grid listPageScope.ts): a 500 ms long press held within 10 px starts selecting with that card ticked, and the click that ends the press is swallowed; while selecting a tap ticks or unticks, unticking the last ends it; requestListSelection(pageColumn) (the More menu's 「Select」) starts it with none ticked. The selection is the grid's one selectedRows, shown in #35678's floating BulkActionBar; its new optional open keeps the bar up at 0 (「0 selected ×」, no actions) while a selection opened by 「Select」 has nothing ticked, and draws nothing new for any other host. The 「Select」 request, the "is a selection open" read and the "would 「Select」 open one" read live in listPageScope.ts (requestListSelection, usePublishListSelecting / useListPageSelecting, usePublishListSelectable / useListPageSelectable); the page hides its 「+」 FAB while one is open, and draws 「Select」 only while the grid says a request would open one (cards whose rows take more than one tick; not a kanban, a calendar, or a list with no or single selection). The grid's selectionAvailable in the action context is not enough for that: it is also true for a single-select list, where 「Select」 does nothing. The card scroller carries the grid's root ref, so the cards are inside the list page's scope too. A card is a keyboard control (role="button", tabIndex={0}, Enter / Space on its own key, aria-pressed while selecting): Enter opens it, and while selecting Enter or Space toggles it. Every pointer-down clears the long press's swallow flag first, so a long press the browser ends with no click (a finger that slid off, Android after its context menu) never eats the next tap.

Shared with desktop

Phone part Shared component Notes
Sort sheet levels the list's SortItem[] (what SortBuilder edits) drawn by PhoneSortLevels; see "Separate"
Sort sheet 「Add sort」 / 「Change field」 SortPanel, FieldList unchanged
Sort ✓ applySort → onSortChange the desktop chip's write
Filter sheet add / edit FilterPanel advancedOffered={false} (internal prop) only drops its footer link
Filter ✓ applyPanelFilters → onFilterChange the desktop chips' write
Views sheet ObjectViewSwitcherMenu phone moves the search last; footerEnd adds View settings
View settings sheet ViewSettingsContent the popover's own props, spread
⋮ More ObjectViewMoreMenu extracted from the desktop's ObjectViewPageBarActions
Save (from #35955) the host's conditionRowEnd drawn at the pill row's end
Selection bar BulkActionBar (#35678) open added for an empty open selection

Separate, and why:

  • PhoneListToolbar: the desktop bar is two rows of mixed controls; the phone row is pills only, by the card.
  • PhonePanelSheet and the staging copy (useStaged): the container and the 「✓」 layer the ruling asks for. It keeps a copy and nothing else.
  • PhonePageBar: the app bar has no slot a page fills on desktop, and the desktop draws the object name in the view bar.
  • The filter sheet's list of conditions: on desktop each condition is a chip in the condition row, which the phone does not draw.
  • PhoneSortLevels: the phone's two-line level face with a touch handle. It edits the same SortItems through the same applySort on 「✓」; it is separate from SortBuilder only because the eager components chunk has no headroom for phone-only bytes (above).

Scope with #35955

#35883's Save, discard, save-as (name first), the toast after saving, and the temporary-view-settings rows move to #35955 (seat comment 7061423282 on #35883, 7061428301 on #35884): #36026 draws 「Save ▾」 at the phone pill row's end through the host's conditionRowEnd. Until it lands, conditionRowEnd draws today's 「Personalized · Reset」 there.

Follow-ups

  • A tap on a card's link cell (a URL or lookup link) while selecting opens the link instead of ticking the card: the cell stops the click from reaching the card (objectstack#33548's rule). The seat opens a small card.
  • Not taken from the L2 nits: the filter count counts top-level entries (a nested group counts as one); a card stays a focusable role="button" even on a list whose rows open nothing and take no tick.

Overlap

overlap-check.mjs against main and open PRs: clean. #36021 (#35678) landed first, as the seat ordered; main is merged here (c884e47, again at 6aef25a): listPageBarSlot.ts and SelectionPageBar are gone, and the cards' selection is #36021's bar.

Verification

  • On bea8fe0 (the L1-b delta S1): ListView.phonePanels-35884 12 tests pass, with a new case: ArrowDown on the first level's handle moves it and the handle keeps focus at the new place, then ArrowUp from it moves it back. jsdom keeps focus on a moved node where a browser drops it, so the case blurs the handle right after each key, as a browser would; ablated, it fails without the refocus. Type-check and eslint (0 errors) on plugin-list.
  • Unit, on 74cf9d8 (main 7dd1a2f merged at 3fe3dd6, with feat(list): a line between columns, 36px default rows and header, and 「+ Add calculation」 always shown in the footer (#36048) #36069, feat(console): a change on a list is a draft, with Discard and Save (#35955 PR 1) #36026, feat(ui): in a list cell, a picker opens under the cell, Backspace clears, a refused value stays, and Enter stays on the cell (#36023 S4) #36054, feat(ui): one 8px corner for every control, a white content area beside a light grey sidebar, and badges at weight 500 (#36047 slice 1) #36093 and fix(objectql): a system-door delete of a record with no organization keeps it in the recycle bin #36097; full pnpm build): plugin-grid + plugin-list + the click census + components custom/ 483 files / 4,622 tests; the app-shell subset 138 files / 1,240 tests; type-check of plugin-list and app-shell, eslint (0 errors), check:i18n-keys and overlap-check clean. check:eager-closure locally: ui-components 347,610 gzipped bytes, the same as main with this branch's components change removed. e2e list-* on chromium: 49 of 51 pass; the 2 that failed are list-no-actions-column-35554's "side record" cases (列表选中记录后:底部居中浮出操作条(已选 N 条、最多 3 个带文字的操作、更多),页面上方不再换内容;主列表、子表页签、侧边记录用同一条 #35678's), which fail only when the drawer face is a worker's first mount: the first-mount wait getByText('商机 1') then also matches the side record's heading (strict mode). This branch does not touch them. On a re-run of the three side-record cases, dark and 375 passed and light failed again for the same reason.
  • Unit, on f6a0264 (the L1-b round, main 1647fb3 merged at 6aef25a, full pnpm build): grid + list 481 files / 4,607 tests; the app-shell subset 137 files / 1,225 tests; type-check of plugin-grid, plugin-list, app-shell and components, eslint (0 errors), check:test-source-alias, check:i18n-keys and overlap-check (main and 6 open PRs) clean.
  • Unit, on 7bea6cb (the L2 round): pnpm exec vitest run packages/plugin-grid packages/plugin-list passes, 481 files and 4,602 tests; app-shell, the 137 files that import ObjectView, the phone page bar, the title switcher or the selection reads pass, 1,224 tests; type-check of plugin-grid, plugin-list and app-shell, eslint on the changed files (0 errors), check:test-source-alias, check:i18n-keys and overlap-check (main and 7 open PRs) are clean.
  • Unit, after the merge: pnpm exec vitest run packages/plugin-grid packages/plugin-list packages/i18n plus the click census pass, 587 files and 6,559 tests. app-shell: the 160 files that import or drive the changed modules (the switcher, the switcher menu, the page header, AppHeader, ObjectView, the FAB, the selection bar, the phone viewport) pass, 1,259 tests. The whole package (2,357 files) is left to CI's shards.
  • New tests:
    • plugin-list/src/__tests__/ListView.phonePanels-35884.test.tsx (11): the pill row and no condition row; userActions.sort: false; sort 「✓」 writes once through onSortChange and the count turns 1; 「×」 writes nothing and the sheet reopens from the list's sort; the empty filter state; the or group notice; an untouched 「✓」 writes nothing (sort, and the advanced-filter notice); with a stand-in visualViewport 300 px short the sheet's bottom is 300 px and its height the visible area less 40 px, and both clear when it grows back (ablated: fails without the inset style); the levels' two lines, handle and ⋯ name; a finger drags the second level above the first and 「✓」 writes that order (ablated: fails without the move).
    • plugin-grid/src/__tests__/cardSelection-35883.test.tsx (8): a long press with no click after it, then one tap on another card ticks that card (ablated: fails with the flag reset after the early return); 「Select」 is offered (useListPageSelectable) for multiple and not for single or none (ablated: fails when it follows rowsSelectable); long press ticks and opens nothing, a tap adds, unticking the last ends; a press that moves starts nothing; 「Select」 starts with none ticked and the bar reads 0 with 「×」 alone, which ends it; a long press floats the bar after the cards reading 1; Enter opens a card and Space toggles it while selecting; no selection without selection.
  • Rewritten tests:
    • ListView.phoneSortSearch-28911: the phone search trigger's size is now the pill's h-11 min-w-11.
    • ListView.phoneWidth-29074: the same for the phone search trigger; the Display trigger's assertion is unchanged.
    • e2e list-toolbar-view-name-phone (手机宽度下列表的视图名被截成一个字(「全部客户」显示为「全.」) #33833's pin): re-pointed from the retired phone toolbar row at the pill row. At 375 and 390, 「全部客户」 and 「All Customers」 are whole on one row with three 44 px pills. At 320, 「全部客户」 is whole and a longer name truncates while the pills stay on screen. A viewport meta is added so the mobile projects lay out at the viewport's width. tagClass also reads cn(CONSTANT, '…').
    • app-shell/src/views/ObjectView.phoneFabSelecting-35883.test.tsx (3): the phone 「+」 is drawn, is not drawn while a list publishes an open selection, and is drawn again after; ⋮ More has no 「Select」 until the list publishes that one would open, then has it (ablated: the old titleSwitcher gate fails the first).
    • components/src/__tests__/clickableNonControlCensus-13461: the mobile card list's BACKLOG row is deleted. The card is repaired (a control with role="button", tabIndex={0}, Enter / Space on its own key, aria-pressed while selecting), as the backlog's deletions-only rule asks; cardSelection-35883 pins the keyboard path.
    • i18n: listConditions.phone.sortCount / .filterCount are count families with every CLDR slot their pack selects and a base key (objectui#11445), in all packs and the English fallbacks.
    • e2e list-frame-geometry-35548: the switcher's source-order check reads the desktop trigger inside <PopoverTrigger>, since the phone pill comes first in the file and draws no type icon.
  • e2e, chromium, run locally: list-toolbar-view-name-phone (both chromium projects), list-frame-geometry-35548, list-condition-row-35549, list-no-actions-column-35554, list-left-edge-35663 and list-header-narrow-35446 all pass; after the merge every e2e/list-* spec passes (50).
  • Browser, own backend and console, CRM 「客户」 list, 375 and 390, light and dark: the top row, the pill row, the sort, filter and views sheets, ⋮ More, and a long press into selection. After the merge, at 375 light and dark: 「Select」 with none ticked (「0 selected ×」), two ticked (「2 selected × Delete」), the 「+」 gone. Screenshots went to the seat.
  • Keyboard, SIMULATED in Chromium at 375, light and dark (window.visualViewport replaced by a stand-in 336 px shorter, a grey block drawn where a keyboard would be): the filter value step with its field focused and the views sheet with its search focused. Both sheets read data-keyboard-inset=336, span y 40–476 (the keyboard's top), with 「✓」 at y 73–117 and the focused field above 476 (the filter value at 172–204, the views search at 355–400). Not a real device reading. 「Select」 checked in the same console: offered on the CRM 「客户」 list and opens the bar.

Human Minimum

  • 1. Schemas start as Zod; packages/spec holds no runtime logic. (No spec change.)
  • 2. Every name I added uses the casing for its kind.
  • 3. No formatter ran; pnpm lint passes (0 errors).
  • 4. One issue, one branch off an up-to-date main, one pull request. (Two cards, dispatched as one PR.)
  • 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset.
  • 6. packages/spec touched: n/a.
  • 7. No hand edits to content/docs/references/, packages/*/CHANGELOG.md or content/docs/releases/.
  • 8. Title, body and comments are in English.
  • The Before Submitting list in CONTRIBUTING.md is done.

🤖 Generated with Claude Code

https://claude.ai/code/session_01L6bhgXQEtN6Kp1wRKH6Fde

…that apply on ✓, long-press selection

Below `sm` the object list keeps its desktop content and changes its
containers: the app bar's row becomes the page's own (‹, icon and name,
⋮ More with Select), one row of pills (view switcher, Sort N, Filter N,
Search), and the sort, filter, view switcher and View settings panels open
as bottom sheets. The sort and filter sheets stage a copy and hand it to the
desktop's own writes on ✓; × drops it. SortBuilder gains a stacked layout and
touch reorder. A long press on a card, or Select, starts a card selection
shown in the page's selection bar.

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgXQEtN6Kp1wRKH6Fde
…e; e2e pins follow the phone toolbar

The view switcher's phone pill draws the view's name and count with no type
icon, and its slot loses the 55% cap, so 「All Customers」 stays whole at 375.
The #33833 geometry pin now measures the phone pill row, and the #35548
source-order check reads the desktop trigger.

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgXQEtN6Kp1wRKH6Fde
@github-actions github-actions Bot added size/xl documentation Improvements or additions to documentation tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 21, 2026
…ter and Space

The click census (objectui#13461) froze the card list as a clickable div
without a keyboard path. The card now takes `role="button"`, `tabIndex={0}`
and Enter / Space (its own key only), reports `aria-pressed` while
selecting, and leaves the census backlog.

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgXQEtN6Kp1wRKH6Fde
`listConditions.phone.sortCount` / `.filterCount` interpolate `{{count}}`,
so each is a family with every CLDR slot its pack selects (objectui#11445)
and a base key, in every pack and in the English fallbacks.

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgXQEtN6Kp1wRKH6Fde
main retired the page bar slot (listPageBarSlot.ts, SelectionPageBar) for
one floating BulkActionBar in every grid face. The phone's 「Select」 request
and the "is a selection open" read move to listPageScope.ts; the cards'
selection is the bar's selection, and BulkActionBar takes `open` so a
selection opened by 「Select」 shows 「0 selected ×」 before a card is ticked.
Pins: the bar at 0 and after a long press (cardSelection-35883), and the
phone 「+」 not drawn while selecting (ObjectView.phoneFabSelecting-35883).

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgXQEtN6Kp1wRKH6Fde
… at collection

The page's draft bar reaches `import('@objectstack/lint')` inside a function,
so the new test imports it at module top, as check:test-source-alias asks.

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgXQEtN6Kp1wRKH6Fde
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Posted 2026-11-21T10:36Z. The brief handed to the isolated declaration-face reviewer for PR #36024 (owed by the changeset's Clause-②: yes (widening) line), on the head after the merge round onto #36021's floating selection bar. The record follows as its own comment.

Contract review brief — PR #36024 @ ad6e39cc0e753296a8570463b02f14ada299434a (card #35883)

You review at TIER_DEFAULT. Render ONE ## Contract review record on this head — its shape is
node scripts/pm/record-recognisers.mjs --template --face declaration — with a PASS or FAIL verdict, and post it as ONE comment
on the PR or its card.

Inputs — these and nothing else:
· card #35883: its body and EVERY comment (rulings and earlier records included)
· PR #36024: its body, its file list, and the net diff against main at ad6e39cc0e753296a8570463b02f14ada299434a
· the check-runs on ad6e39cc0e753296a8570463b02f14ada299434a: their conclusions ARE the gate verdicts
⛔ Not the dispatch order, ⛔ not the dispatching seat's own conclusions — this brief is adversarial by design.

⛔ READ-ONLY. No worktree, no checkout, no build, no test run, no gate re-run, no ablation: the check-runs
on the head already answered every derived gate family, and a local run costs more than it returns.
If ONE probe is unavoidable, the record's Local-runs: line says probe — REASON; otherwise none.
Scratch space is /tmp/claude-0/-home-user/3d3cbaf6-4903-5fed-92d4-c2b94a45e868/scratchpad/pr-36024/ alone; nothing there you did not write this round is read.

Judge, in the record's own sections:
① Derived judgments — every accept-set and public-surface change the diff implies, each named right or wrong.
② Semver level — the changeset (or skip-changeset) matches what the diff publishes, and the Clause-②: line.
③ Boundary flags — every dev flag and every open_questions entry answered, or escalated.
On every face, SQL push-down: a new id materialisation or in-app join where SQL could push down is a
finding unless a reason is given (AGENTS.md, Prime Directive 5: SQL first).
Sign Implemented-by: with the dev's branch and Reviewed-by: with your session id — the value is the FIRST
thing after each colon.
· also card #35884 (folded into this PR): its body and every comment

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Contract review

Served-tier: TIER_DEFAULT
Head-sha: ad6e39cc0e753296a8570463b02f14ada299434a
Local-runs: none

Inputs read: cards #35883 and #35884 (bodies and every comment, including the 06:07Z and 06:08Z claims and the 04:16Z coordinator note), the PR body and file list (37 files), the net diff against its merge base with main (c00be39b7), and the check-runs on the head. Every check-run concluded success or skipped (no failure, nothing pending): Type Check UI, Lint UI, Test UI 1 to 16, Build and E2E UI, Live E2E UI, Check Changeset, PR-body guards, Governed Surface Queue Guard, Dogfood Regression Gate, Check PR Size. No published schema or governed path is in the tree, so the declaration face applies and there is no section ④.

① Derived judgments

Every change to the public surface the diff makes, each judged:

  • @object-ui/components: SortBuilder gains layout?: 'rows' | 'stacked' (default rows), onAddLevel and onChangeLevelField. All three are optional, the default render is the same, and the move/update/remove writes are shared by both layouts. Right. Touch reorder (pointer events, touch-none, data-vaul-no-drag) now also applies to the rows layout on touch devices. That widens behaviour and removes nothing. Right. Two new safe-translation defaults are added (sortBuilder.levelOptions, .changeField). Right.
  • @object-ui/plugin-list index: new exports PhonePanelSheet, useListPhonePanels, PHONE_CHIP, PHONE_CHIP_ACTIVE and the types PhonePanelSheetProps, ListPhonePanels. These are additive, and app-shell's title switcher consumes them. Right.
  • @object-ui/plugin-list FilterPanel.advancedOffered: the prop is optional and defaults to true, so desktop behaviour is unchanged. Right as code, wrong as a declaration. FilterPanel is not exported from the package index, and the package's only entry is .. The changeset's line "FilterPanel takes advancedOffered" names a surface no consumer can reach (see should-fix S1). Likewise NamedCondition, useLookupValueNames, ListPhonePanelsContext and app-shell's FOOTER_ITEM become module-level exports only. They are not package surface, which is right.
  • @object-ui/plugin-grid index: new exports requestListSelection and useListPageSelecting. useListSelectionRequest and usePublishListSelecting stay internal. Right. BulkActionBar gains open?: boolean (default false). The count === 0 early return and the Escape listener now also honour open, the actions are not drawn at 0, and no existing host changes behaviour. Right.
  • @object-ui/plugin-grid card renderer: a card becomes role="button", tabIndex={0} and aria-pressed while selecting. Long press selects, a tap toggles while selecting, Enter and Space work on the card's own key, and the card scroller now carries the grid root ref. This repairs the census row the PR deletes (deletions-only backlog rule), and cardSelection-35883 pins it. Right. See nit N3 on the inert-card case.
  • @object-ui/plugin-list ListView below sm (useBelowSm): the desktop toolbar row and condition row are no longer drawn. They are replaced by the pill row, which takes the host's toolbarLeading, toolbarTrailing and conditionRowEnd. The host's toolbarTrailing is now called with the phone search alone, and the 视图设置 props are reused through viewSettingsElement.props. Sort ✓ goes through applySort, so it ends in onSortChange. Filter ✓ goes through applyPanelFilters, so it ends in onFilterChange. These are the desktop's one write, so there is no second save path, which is what the parent epic's "one content, new container" ruling asks for. Right. See N1 and N2.
  • @object-ui/i18n: new keys in all 11 packs: listConditions.phone.*, sortBuilder.levelOptions / .changeField and console.objectView.select. The count families carry each pack's CLDR slots plus a base key (ar has zero to other, en has one and other). This is additive. Right.
  • @object-ui/app-shell: PhonePageBar (store, provider, publish hook), ObjectViewMoreMenu (extracted, with leading and triggerClassName), and ObjectViewSwitcherMenu's phone / footerEnd are all internal. The package index exports none of them, which matches the changeset's "changes no public export". Right. The 「Select」 item is the one part that is wrong in its gating (see should-fix S2).

② Semver level

  • Changeset .changeset/35883-phone-list-toolbar-panels.md bumps patch on @object-ui/components, @object-ui/plugin-list, @object-ui/plugin-grid, @object-ui/app-shell and @object-ui/i18n. These are exactly the five released packages the diff moves. None is missed and none is extra.
  • AGENTS.md (Post-Task Checklist step 3) sets the level by kind alone. Metadata-protocol: none takes patch, and a non-protocol widening also ships patch. The diff adds no spec key, accepted value or metadata type, so none is correct and patch is the right level. Matches.
  • Clause-②: yes (widening) is line-initial in both the PR body and the changeset body, with a well-formed arm. The diff only adds optional props and exports; it removes, renames or tightens nothing on any published declaration. Widening is correct. One caveat: the changeset's public-surface list over-declares FilterPanel.advancedOffered (S1).

③ Boundary flags

The PR body has no open_questions section. Each dev flag and claim seat call, answered or escalated:

Graded findings (no must-fix):

Implemented-by: claude/project-thread-jdeh3j
Reviewed-by: isolated L2 sub-agent of seat session_01L6bhgUkbQqRUUFSiu2HGob

VERDICT: PASS

…nd on the keyboard

- ⋮ More offers 「Select」 only while the page's grid says a request would
  open a selection (cards whose rows take more than one tick), through a new
  usePublishListSelectable / useListPageSelectable pair in listPageScope.
- PhonePanelSheet reads visualViewport while open: with the on-screen
  keyboard up its bottom is the keyboard's top and its height the visible
  area's less the top strip; vaul's own repositionInputs is off.
- 「✓」 on an untouched sort or filter copy writes nothing.
- The changeset drops FilterPanel.advancedOffered (not a package export).

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgXQEtN6Kp1wRKH6Fde
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Contract review

Served-tier: TIER_DEFAULT
Head-sha: 7bea6cb0ea90a090b8d279f763ac06f7066753f7
Local-runs: none

This is a delta review. It reads only the one commit after ad6e39cc0e753296a8570463b02f14ada299434a, the head the previous PASS read: 7bea6cb0e, "phone 「Select」 only where it opens a selection; sheets stand on the keyboard". The commit touches 9 files. Other inputs: the PR body on this head, and the seat comments it cites, 7061423282 on #35883 and 7061428301 on #35884.

Gate state at 2026-11-21T11:19Z: the check-runs on this head are not finished. 9 have succeeded, 15 are skipped, and 18 are still in progress, including Type Check UI, Lint UI, Build and E2E UI, Live E2E UI, Check Changeset, the Plan Test UI shards and the Lint and Type Check families. One run of PR-body guards was cancelled; a later run of PR-body guards on the same head succeeded. Governed Surface Queue Guard and Check PR Size succeeded. This record judges the contract only. It does not answer the gates that are still running; their conclusions are the gate verdicts when they land.

① Derived judgments

  • S1 (resolved). FilterPanel takes advancedOffered is gone from the changeset's export list and from the PR body's Clause-②: list. The body now calls the prop internal and says why: FilterPanel is not a package export. Nothing public changed to make this fix; only the declaration was corrected. Right.

  • S2 (resolved). The fix has three parts:

    • ObjectGrid publishes cardsSelectRequestable = useCardView && rowsSelectable && !singleSelection through usePublishListSelectable. The same flag now also gates the grid's own handling of the request, so the offer and the effect cannot drift apart. useCardView is state declared at line 867, ahead of its use, so there is no ordering hazard. The card scroller carries the grid root ref, so the read sees the cards.
    • ObjectView gates 「Select」 on useListPageSelectable(pageColumnEl), replacing the old gate on titleSwitcher.
    • The tests cover it. cardSelection-35883 checks multiple, single and none. ObjectView.phoneFabSelecting-35883 checks absent and present, with a CONTROL. The body says the pin was ablated against the old rowsSelectable gate.

    The body also gives the reason it did not reuse the published selectionAvailable: that flag is true for single-select lists too. That reason is sound. Right.

  • New export useListPageSelectable (@object-ui/plugin-grid index). It is a read-only hook over the list-page scope store, shaped like useListPageSelecting, and it returns false with no scope, no grid mounted, or a non-card or non-multiple list. Its writer, usePublishListSelectable, stays internal. The export is additive and its one consumer is app-shell. Right.

  • S4 (resolved in code). PhonePanelSheet reads window.visualViewport while open (useKeyboardInset). When the keyboard is up, the sheet's bottom becomes the keyboard's top and its height becomes the visible height less the 40 px strip. Gaps under 80 px count as browser chrome, not a keyboard. vaul's repositionInputs is turned off so the two height writes do not fight; the prop exists in the components package's vaul 1.1.2. A unit test with a stand-in visualViewport pins the inset going on and off, and the body says it was ablated. Right as code. The browser evidence is SIMULATED by the dev's own label (a stand-in viewport in Chromium), not a device reading (see ③).

  • N1 (resolved). Sort ✓ and filter ✓ now write only when staged !== value. useStaged takes the copy by reference, so an untouched copy, including the advanced-filter notice, writes nothing. Two tests pin it. An edit that is then reverted still writes an equal value, which is harmless. Right.

  • N4 (resolved). The "Card selection" paragraph now names listPageScope.ts. The "Overlap" section's mention of listPageBarSlot.ts is about the merge history and is accurate.

② Semver level

  • The changeset keeps patch on the same five packages. This delta moves only @object-ui/plugin-grid, @object-ui/plugin-list and @object-ui/app-shell, which are already listed. The new behaviour (Select gating, keyboard inset, the untouched ✓) is described in the changeset body, which ships as the CHANGELOG.
  • Metadata-protocol: none still holds: the delta adds no spec key, value or metadata type. Under AGENTS.md (Post-Task Checklist step 3), none takes patch, and a non-protocol widening ships patch. Matches.
  • Clause-②: yes (widening) still holds. The delta adds one export (useListPageSelectable) and removes or renames nothing published. Dropping FilterPanel.advancedOffered from the declaration narrows nothing, because that prop was never reachable. Widening is correct.

③ Boundary flags

Graded findings on this delta: none must-fix. None should-fix inside the diff. One residual note: the S4 real-device reading is owed at acceptance.

Implemented-by: claude/project-thread-jdeh3j
Reviewed-by: session_01L6bhgUkbQqRUUFSiu2HGob (isolated L2 sub-agent of the seat)

VERDICT: PASS

…keeping the eager components chunk under its ceiling

SortBuilder takes renderLevel instead of a stacked layout: the builder keeps
the levels, their order, the handle (mouse, touch, keys) and every write; the
phone sheet draws each level's two lines and its menu, and its own Add sort.

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgXQEtN6Kp1wRKH6Fde
…r stays as on main

The eager ui-components chunk sits at its ceiling on main, so the phone's
two-line level face, its touch handle and its menu are drawn by
PhoneSortLevels in plugin-list over the same SortItem list.

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgXQEtN6Kp1wRKH6Fde
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUmopshYqDCrYekUj4

席位核对 — delta ACCEPT (L1-b)

Head-sha 74cf9d8 · read 2026-11-21T15:29Z · delta from ACCEPT 7062966360 @7bea6cb0 · own commits 92e74834, f6a0264d, 79e27835, 74cf9d88; merges 6aef25ae (main 1647fb3d) and 3fe3dd6a (main 7dd1a2f6, with #36069, #36026 and S4 #36054).

维护者速读

上次提的问题都改了:长按后手指滑开、没有点击的情况下,下一次轻点不会再被吞掉,并且补了能复现这个问题的测试;手机列表顶部现在显示对象的彩色图标,和桌面一致。范围也变小了:通用排序组件恢复成和 main 完全一样,手机排序层级改由列表插件自己画,所以首屏公共包没有多出手机专用的代码,components 包也不再出现在发版说明里。剩下一处小问题建议落地前顺手修:在手机排序面板里用键盘方向键调整排序层级时,按下方向键后焦点会丢,再按一次就没有反应了。旧版本有焦点保持的处理,这次搬家时漏掉了,发版说明却写着支持方向键。用户主要用手指拖动,所以影响面很小。

Must-fix

None.

Should-fix

  • S1, keyboard reorder lost its focus keeping (ui/packages/plugin-list/src/phone/PhoneListPanels.tsx, PhoneSortLevels, the handle's onKeyDown).
    • What changed. The handle moves a level with ArrowUp / ArrowDown, but nothing puts focus back on it afterwards. The stacked SortBuilder it replaces (7bea6cb, sort-builder.tsx:255-260) kept a handleRefs map and ran requestAnimationFrame(() => handleRefs.current.get(moved)?.focus()), with the comment "The handle keeps focus at the row's new place".
    • Why focus drops. On ArrowDown, React's keyed reorder moves the focused row's own DOM node, so the browser drops focus to body. The second ArrowDown, or a Tab, then starts from the top of the page.
    • What the docs claim. This commit's changeset now says "(or ArrowUp / ArrowDown moves)", but no test drives the keys on the phone levels. sort-builder-reorder-35876.test.tsx covers only the desktop SortBuilder, which kept its refocus.
    • Fix. Bring the ref map and the rAF refocus across, plus one case: ArrowDown on the first handle, then expect the moved row's handle toHaveFocus(), and a second ArrowDown moves it again. It is small enough to ride this head. Otherwise a follow-up card works, since touch drag, the sheet's main path, is unaffected.

Nits

None new. The earlier N1–N3 are all fixed: the phone top row's tile, the changeset's Enter wording, and selectRequests pruning.

Checked

  • Merges. For both 6aef25ae and 3fe3dd6a, git merge-tree --write-tree of the parents equals the commit's tree, so the merges are clean and unedited.
  • S1 (from 7062966360) fixed. ObjectGrid.tsx card onPointerDown now sets press.fired = false before the !cardsSelectable || cardSelecting early return, with a comment saying why. The new case "a long press the browser ends with no click does not swallow the next tap" (long press on Acme with no click, then pointerdown/up/click on Globex, expecting it ticked and onRowSelect with both) fails on the old order. With cardSelecting true the early return kept fired from the long press, and the click was swallowed. The PR body says it was ablated.
  • N1 fixed. f6a0264d draws ObjectIconTile icon color in the phone page bar, as feat(ui): the object's colour tile replaces its line icon in list headers, search, recents, pointers, hover cards, related lists and the studio #36042 does on desktop. It also drops createElement and getIcon, which were unused after the change.
  • N2 fixed. The changeset now says "while selecting Enter or Space toggles it", which matches the code.
  • N3 fixed. requestListSelection prunes selectRequests entries that are no longer isConnected.
  • Scope narrowed.
    • git diff 7dd1a2f6 74cf9d88 -- ui/packages/components is only the two-line census test edit. sort-builder.tsx is byte-identical to main.
    • The changeset lists plugin-list, plugin-grid, app-shell and i18n, and no longer components. Clause-② (widening) lists no SortBuilder prop.
    • Net vs the 7bea6cb read: 37 → 36 files. Only PhoneListPanels.tsx (+146), the phone panel test, conditionTranslations.ts (+10), the card test (+20), ObjectGrid.tsx (+3) and listPageScope.ts (+2) differ, apart from the removed sort-builder.tsx.
  • PhoneSortLevels. It is the same SortItems, the same date-aware direction words and the same test ids as the stacked builder had.
    • Pointer drag: setPointerCapture, data-vaul-no-drag, and stopPropagation so the sheet's swipe never sees it.
    • Two-line rows, 44px targets, and a ⋯ menu with change field, both directions and remove.
    • 「Add sort」 is disabled when every field is already held.
    • The two new keys used here, sortBuilder.levelOptions and .changeField, are present in all 11 locale files. The plugin-list fallback catalogue carries the English strings.
    • The moved drag case now goes through the real sheet and 「✓」 (staged, then written once in the new order).
  • Unrelated e2e reds. The two list-no-actions-column-35554 side-record failures named in the body come from a test-order strict-mode match in 列表选中记录后:底部居中浮出操作条(已选 N 条、最多 3 个带文字的操作、更多),页面上方不再换内容;主列表、子表页签、侧边记录用同一条 #35678's spec, which this PR doesn't touch. Card e2e list-no-actions-column-35554: the side-record cases fail when the drawer is the worker's first mount (getByText matches the side record's h1 too) #36119 is open for them.

Owed

  • The seat chooses whether S1 rides this head or goes to a follow-up card. If it rides, I'll do a delta read of that commit only. Your delta L2 is running in parallel.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Contract review

Served-tier: TIER_DEFAULT
Head-sha: 74cf9d88a4e7b5714c861f9f2b2904006889a480
Local-runs: none

This is a delta review against the head the previous PASS read, 7bea6cb0ea90a090b8d279f763ac06f7066753f7. Since that head the branch has four commits of its own and two merges of main:

To keep the PR's own change apart from the merges, this review compares two diffs:

  • the old net diff (c00be39b7..7bea6cb0e, 37 files), and
  • the new net diff against the new merge base (7dd1a2f61..74cf9d88a, 36 files).

The new file list is the old one less ui/packages/components/src/custom/sort-builder.tsx. In the added and removed lines, 28 files are identical. The 8 that differ are the changeset, ObjectView.tsx, ObjectGrid.tsx, listPageScope.ts, PhoneListPanels.tsx, conditionTranslations.ts and the two test files. In each one the difference is exactly the declared S1, N1, N2, N3 or PhoneSortLevels work. Neither merge left a conflict resolution anywhere else in the PR's files. GitHub reports mergeable_state: clean on main.

Gate state at 2026-11-21T15:28Z: every one of the 66 check-runs on this head has completed. 48 succeeded, 17 were skipped and 1 was cancelled. The cancelled run is a Check Changeset run (15:02:43–15:03:48Z). Two other Check Changeset runs on the same head succeeded (15:01:53–15:04:11Z and 15:03:50–15:06:01Z), so the cancellation is superseded. The rest all succeeded, including Type Check UI, Lint UI (the eager-closure ceiling), Build & E2E UI, Live E2E UI, Test UI 1/16 to 16/16 and Test UI, all three PR-body guard runs, Governed Surface Queue Guard, Dogfood Regression Gate and Check PR Size. No check failed and none is pending.

① Derived judgments

  • S1 (every pointer-down resets press.fired). In ObjectGrid's card onPointerDown, press.fired = false now runs before the !cardsSelectable || cardSelecting early return. A long press that the browser ends without a click can no longer swallow the next tap, including a tap made while already selecting. cardSelection-35883 adds a pin (long press with no click, then a tap on another card), and the body says it was ablated. The change is internal and adds no surface. Right.

  • N1 (the top row draws ObjectIconTile). ObjectView publishes <ObjectIconTile icon color /> in place of createElement(getIcon(...)). ObjectIconTile is already a @object-ui/components export on the merge base (custom/index.ts:44, from feat(ui): the object's colour tile replaces its line icon in list headers, search, recents, pointers, hover cards, related lists and the studio #36042), so app-shell gains no dependency and no export. Right.

  • N2 (changeset wording). "while selecting Space toggles it" now reads "while selecting Enter or Space toggles it", which matches the card's key handler. The sort bullet gains "(or ArrowUp / ArrowDown moves)", which matches PhoneSortLevels' onKeyDown. Right.

  • N3 (selectRequests prunes disconnected columns). requestListSelection drops every held HTMLElement key whose isConnected is false before it counts the new request. This is a module-internal map. The exported signature requestListSelection(scope: HTMLElement | null): void is unchanged. Right.

  • PhoneSortLevels (plugin-list, internal). It is a non-exported function in phone/PhoneListPanels.tsx and is not in src/index.tsx.

    • It draws the staged SortItem[] on two lines each.
    • It has a pointer-event handle (touch-none, data-vaul-no-drag, stopPropagation) with ArrowUp / ArrowDown moves.
    • It has a ⋯ menu per level (change field, asc / desc, remove) and its own 「Add sort」 button.
    • Every write goes to setStaged. 「✓」 still ends in applySort → onSortChange, so the epic's "one content, new container" ruling still holds.
    • Its copy comes from useListConditionTranslation, whose defaults gain sortBuilder.addSort / ascending / descending / oldestFirst / newestFirst / reorder / removeSort / levelOptions / changeField.

    The i18n packs still add sortBuilder.levelOptions and sortBuilder.changeField (they are used at PhoneListPanels.tsx:418 and :426), so the i18n part of the PR body's Clause-② line is still accurate. Right.

  • @object-ui/components. sort-builder.tsx is byte-identical with main: git diff origin/main 74cf9d88a on that file is empty. The only components path left in the PR's own diff is src/__tests__/clickableNonControlCensus-13461.test.ts (one BACKLOG row deleted). Under files: ['dist', …] and the **/__tests__/** tsconfig exclude, that file is not published. Right.

② Semver level

  • Packages. The changeset now bumps patch on four packages: @object-ui/plugin-list, @object-ui/plugin-grid, @object-ui/app-shell and @object-ui/i18n. Those are exactly the released packages whose published code moves in 7dd1a2f61..74cf9d88a. @object-ui/components leaving the changeset is correct, because nothing it publishes moves.

  • Published surface, read off the diff.

    • plugin-list index: PhonePanelSheet, useListPhonePanels, PHONE_CHIP, PHONE_CHIP_ACTIVE, and the types PhonePanelSheetProps and ListPhonePanels.
    • plugin-grid index: requestListSelection, useListPageSelecting and useListPageSelectable are added to the listPageScope re-export. BulkActionBar takes open.
    • app-shell publishes no new export.
    • i18n: the keys listConditions.phone.*, sortBuilder.levelOptions / .changeField and console.objectView.select.

    The changeset's "New exports and props" list and the PR body's Clause-②: line name exactly these. Neither names anything the diff does not publish. FilterPanel.advancedOffered is still declared internal.

  • No narrowing. The SortBuilder props layout, onAddLevel and onChangeLevelField that 7bea6cb declared were never on main: a grep of sort-builder.tsx at origin/main, 7dd1a2f61 and c00be39b7 finds none of them. They were never released, so dropping them from the declaration narrows nothing. The PR still only adds optional props and exports, and removes, renames or tightens nothing published. Clause-②: yes (widening) stands, line-initial in both the PR body and the changeset. Matches.

  • Level. Metadata-protocol: none holds: the delta adds no spec key, accepted value or metadata type. Under AGENTS.md (Post-Task Checklist step 3), none and a non-protocol widening both take patch. Matches.

③ Boundary flags

Graded findings on this delta: none must-fix and none should-fix. One body-wording nit, given above. One residual note carries over: the S4 real-device reading is owed at acceptance.

Implemented-by: claude/project-thread-jdeh3j
Reviewed-by: session_01L6bhgUkbQqRUUFSiu2HGob (isolated L2 sub-agent of the seat)

VERDICT: PASS

…rowDown moves it

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L6bhgXQEtN6Kp1wRKH6Fde
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUmopshYqDCrYekUj4

席位核对 — delta ACCEPT (L1-b)

Head-sha bea8fe0 · read 2026-11-21T15:34Z · delta from delta ACCEPT 7064914359 @74cf9d88 · one commit, 2 files (PhoneListPanels.tsx +9/−1, ListView.phonePanels-35884.test.tsx +26) · CI running at read time; L1 is final on this head once CI is green.

维护者速读

上一轮提的小问题已经修好:在手机排序面板里用方向键调整层级时,焦点会跟着被移动的那一层,可以连续按,发版说明里写的方向键功能现在说的是实话。补了一个测试,模拟浏览器丢焦点的情况,去掉修复就会失败。没有其他改动。

Must-fix / Should-fix / Nits

None. S1 from 7064914359 is fixed.

Checked

  • The fix. PhoneSortLevels keeps a handles map (Map<string, HTMLElement>), filled by a ref callback on each handle (set on mount, delete on unmount). move now returns the moved level's id, and undefined for a no-op at either end. The handle's onKeyDown then runs requestAnimationFrame(() => handles.current.get(moved)?.focus()). This is the same shape as the stacked SortBuilder it replaced (7bea6cb, sort-builder.tsx:255-260).
  • The test. "ArrowDown on a handle moves its level and the handle keeps focus, so ArrowUp from it moves it back" builds two levels through the real sheet.
    • After each key it calls blur(), as a browser drops focus from a node React moves. jsdom keeps focus, so without this the case would pass with no fix.
    • It then waits for the moved level's handle to toHaveFocus(), and the second key comes from document.activeElement.
    • That is a real ablation: with the rAF refocus removed, focus stays on body after the blur, and both toHaveFocus waits fail.
  • Scope. Nothing else changed. The changeset sentence "(or ArrowUp / ArrowDown moves)" is now true.

Owed

  • None from L1. The seat lands the PR on green, together with its delta L2.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Seat note at 2026-11-21T15:54Z: the gates this record lists as pending have now landed on bea8fe05. 46 succeeded, 15 were skipped, and 1 was cancelled: a PR-body guards run, replaced by a success on the same head. None failed. The record follows as the reviewer wrote it.

Contract review

Served-tier: TIER_DEFAULT
Head-sha: bea8fe05de494f793a1d7e8e70d2423b99a08ec5
Local-runs: none

This delta review reads only the one commit after 74cf9d88a4e7b5714c861f9f2b2904006889a480, the head the delta2 PASS read. That commit is bea8fe05d, "a phone sort level's handle keeps focus after ArrowUp / ArrowDown moves it". It touches 2 files, +35 / −1. Its only parent is 74cf9d88a, so there is no new merge, and the merge base with main is still 7dd1a2f61. The other input is the PR body on this head, compared with the body at 74cf9d8.

Gate state at 2026-11-21T15:34Z: pending. On this head:

  • 9 check-runs have succeeded. These include Governed Surface Queue Guard, Check PR Size and Dogfood Regression Gate.
  • 15 are skipped.
  • 1 is cancelled: a PR-body guards run. A later PR-body guards run on the same head succeeded.
  • 18 are still in progress: Type Check UI, Lint UI, Build & E2E UI, Live E2E UI, both Check Changeset runs, Plan Test UI shards, and the Lint and Type Check families. The Test UI shards have not been planned yet.

GitHub reports mergeable_state: blocked while required checks run. This record judges the contract only. The conclusions of the running gates are the gate verdicts once they land.

① Derived judgments

② Semver level

  • The commit changes no package index, no exported signature, no prop, no i18n key and no changeset: .changeset/ is not in the commit. @object-ui/plugin-list was already bumped patch in the changeset, and this fix is internal to it.
  • The published surface is the same as at 74cf9d8:
    • @object-ui/plugin-list: PhonePanelSheet, useListPhonePanels, PHONE_CHIP, PHONE_CHIP_ACTIVE, and the types PhonePanelSheetProps and ListPhonePanels.
    • @object-ui/plugin-grid: requestListSelection, useListPageSelecting, useListPageSelectable, and the BulkActionBar.open prop.
    • @object-ui/i18n: the new keys.
  • Clause-②: yes (widening) and Metadata-protocol: none are unchanged and still correct in both the PR body and the changeset. Under AGENTS.md (Post-Task Checklist step 3), both take patch. Matches. The contract face is unchanged.

③ Boundary flags

Graded findings on this delta: none must-fix. None should-fix. The gate readings are pending, as listed above.

Implemented-by: claude/project-thread-jdeh3j
Reviewed-by: session_01L6bhgUkbQqRUUFSiu2HGob (isolated L2 sub-agent of the seat)

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

维护者速读

手机上的列表有了自己的顶栏:只有一行筛选标签,排序、筛选、视图都改成从底部弹出的面板,点 ✓ 才生效。电脑端不受影响。两层审核都已通过,CI 全绿。这个 PR 改动共 3,043 行,比 3,000 行的人工合并线多 43 行,所以需要您批准后才能合并,没有碰任何受管文件。

Tier H approval request · 2026-11-21T15:55Z · @os-zhuang, PR #36024 (#35883 + #35884, epic #35880) is ready for your review on head bea8fe05de.

Why it needs a human. No governed path is touched (0 of 36 paths hit the register). The size decides it: 3,043 changed lines (+2,697/−346) is over the 3,000-line human-merge line.

What it does. A phone list gets:

  • its own top row;
  • one row of filter pills;
  • bottom-sheet panels for sort, filter and views, which apply only on ✓.

Sort levels can be reordered by drag or by arrow keys, and the handle keeps focus after a keyboard move. The desktop list is unchanged.

Reviews.

  • Seat declaration L2: PASS on 74cf9d8 (7064937657). The delta on this head is PASS with no findings (7065238836).
  • L1-b: delta ACCEPT 7064985012 is final on this head. The arrow-key focus S1 from 7064914359 is fixed and pinned with an ablated test.

Gates.

  • Clause-②: yes (widening). Metadata-protocol: none. Patch for plugin-list, plugin-grid, app-shell and i18n.
  • CI: 46 success, 15 skipped, none failed. One PR-body guards run was cancelled and replaced by a success on the same head. Mergeable is clean.
  • Main drift: 9 first-parent commits on main since the merge base. There are no translations/ or skills/ paths on either side.

Still owed after merge. A real-device keyboard check on iOS Safari at 375 wide, when #35884 is accepted.

After your approval, the seat readies this PR and lands it through the queue.

@objectstack-fleet objectstack-fleet Bot added the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 21, 2026
@os-zhuang
os-zhuang marked this pull request as ready for review November 21, 2026 16:11
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 21, 2026
Merged via the queue into main with commit 411fe24 Nov 21, 2026
67 of 68 checks passed
@os-zhuang
os-zhuang deleted the claude/project-thread-jdeh3j branch November 21, 2026 16:31
247257110 pushed a commit to 247257110/objectstack that referenced this pull request Nov 22, 2026
… 「+ Add calculation」 always shown in the footer (objectstack-ai#36048) (objectstack-ai#36069)

<!-- claude-projects-attribution: {"github_login":"os-sales"} -->
_Requested by **Sales** · [project
thread](https://claude.ai/code/project/chan_01D5bWFY3rFzgJcytD5gD4Uu?thread=cmsg_01D5bWFY3rFzgJcytD5gD4UuDWLrm1NrVxDWXCHsUrtL24)_
Fixes objectstack-ai#36048

repo:objectstack#1 · os-sales · session_01L6bhgVphzAHrHnMrSMZGYb

Clause-②: no (no export, prop or key added; one existing i18n value
changes its wording)
Metadata-protocol: none

## 维护者速读

- 列表页(比如「客户」)的表格:列与列之间多了一条和横线一样浅的竖线;默认行高和表头从 32 变成
36;底部一行里没选统计的列一直显示浅色的「+ 添加统计」,不用鼠标移上去。
- 这是列表页重做专题的观感改进(对照 Attio 的第 5、7、8 条)。
- 只改样子,不动数据和统计的存储;包里带的视图和没有权限的人仍然看不到入口。撤回这个 PR 即恢复原样。
- 无。

## What changes

| Item | Where | Before → after |
|---|---|---|
| Column lines | `OBJECT_GRID_TABLE_DENSITY` in
`ui/packages/plugin-grid/src/ObjectGrid.tsx` | none → a 1px inset shadow
on the right edge (`inset-shadow-[-1px_0_0_0]` in `border/50`, the row
lines' colour and weight) on every header, body and footer cell but the
last one |
| Default row | `rowHeightCellClass`, `compact` arm, same file | `h-8`
(32px) → `h-9` (36px); `short`, `medium`, `tall`, `extra_tall` unchanged
|
| Header | `OBJECT_GRID_TABLE_DENSITY` | `[&_thead_th]:h-8` → `h-9`
(36px) |
| Footer entry | `SummaryCellPicker` in
`ui/packages/plugin-grid/src/objectGridSummaryPicker.tsx` | hint
`opacity-0` until hover/focus → always shown, faint
(`text-muted-foreground/70`), a `Plus` icon before it, darker on
hover/focus |
| Entry text | `grid.summary.calculate` in the 11 locale packs + the
plugin's English default in `useColumnSummary.ts` | 「计算」/ Calculate →
「添加统计」/ Add calculation (zh-Hant 新增統計, ja 集計を追加, ko 계산 추가, de Berechnung
hinzufügen, fr Ajouter un calcul, es Añadir cálculo, pt-BR Adicionar
cálculo, ru Добавить расчёт, ar إضافة حساب) |

- The row-height menu has three densities (Compact / Standard /
Spacious). A view with no `rowHeight` lands on Compact, which is the
card's "default", so Compact is the density that moves to 36. Standard
(44) and Spacious (56) are unchanged. The seat's claim records this
reading.
- The frozen column draws no divider at rest today (objectstack-ai#35548: a scroll
shadow, none at rest). With this PR its edge is an ordinary column line
at rest and keeps the shadow on top of the line once the rows scroll
sideways under it.
- **Why a shadow, not a border (L1-b S1, 7062990450).** The first head
(`b5445c21`) drew the line as `border-r`. The table collapses its
borders, and a collapsed border belongs to the table, not the cell:
measured on 商机 at 900px wide, scrolled 120px sideways, the frozen
checkbox and name columns lost their lines (the scrolling columns' lines
did not paint over the frozen cells). An inset shadow is the cell's own,
so the sticky cells carry it with them, and Tailwind composes it with
`FROZEN_EDGE_SHADOW` in one `box-shadow` (both layers read back in the
browser while scrolled). It also takes no width, so the column widths do
not move.
- The footer row stays 32px, as the claim states.
- Who sees the entry is unchanged: the menu is wired only where the host
passes `onColumnSummaryPick` (a reader who may change the view; objectstack-ai#35933
keeps it off views a read-only package ships). Without it an empty
footer cell still draws nothing.
- Every embedded `object-grid` follows the new default. Related-list
body tables use their own `BODY_TABLE_DENSITY` and are not touched; the
phone list draws cards.

## Tests

- `ui/e2e/list-frame-geometry-35548.spec.ts` (Playwright, compiled
Tailwind against the real class sources, with the app's `--color-border`
in the theme so both lines resolve to a real colour): header 36 and rows
36 (was 32 / 33), first row top still ≤ 168; new case: the header, body
(the leading checkbox cell included) and footer cells carry exactly one
inset shadow, `-1px 0px 0px 0px`, in the row line's computed colour, and
no right border; the last cell of each carries none. 8/8 pass.
- Ablation at `0a1f7470`: with the column-line entry deleted from
`OBJECT_GRID_TABLE_DENSITY` (`scripts/ablation-replace.mjs`, mutation
landed anchor 1 → 0), the new case goes red (`header: one column line`),
the other 7 pass; restored, blob equals HEAD and `git diff HEAD` empty.
- `rowHeightOffSpecBoundary.test.tsx`: the `compact` copy now carries
`h-9`; it still differs from `short` by its leading, so all five
densities keep their own copy.
- `footerCalculationPicker-35702.test.tsx`: the hint reads 「Add
calculation」 and carries no `opacity-0` at rest; a reader without
`onPick` sees no 「Add calculation」 in the footer.

## Acceptance notes

- In the browser the footer row measures 32.5px on a view that offers
the menu (the picker button's own `h-8` plus the row's line) and 32 on
one that does not; main measures the same, so this PR leaves it.
- Overlap: objectstack-ai#36045 (in-cell editors), objectstack-ai#36024 (phone list, same e2e file)
and objectstack-ai#36054 also edit `ObjectGrid.tsx`; `overlap-check.mjs` reads all of
them as merging cleanly at this head. The seat's landing order puts this
PR after objectstack-ai#36024 and objectstack-ai#36045; this PR merges main and moves the pins then.
- objectstack-ai#36045 pins its in-cell inputs at `h-8`; in the 36px row an edit
measured 36 on main + this PR (below). Re-measure after objectstack-ai#36045 lands.

## Verification

Read first, by risk: (1) `OBJECT_GRID_TABLE_DENSITY` — it reaches every
cell of every `object-grid`; (2) the `compact` arm of
`rowHeightCellClass`; (3) `SummaryCellPicker`'s hint.

Two-minute check: open the 客户 list, add a personal view (switcher → 添加视图
→ 我的视图), and the footer shows 「+ 添加统计」 under every column with a line
between columns.

<details><summary>Browser readings (app-crm, 1440×900, zh-CN, light and
dark)</summary>

Booted `objectstack dev --ui --seed-admin` from this branch (readings
re-taken at `0a1f7470`) with the console built, then again with the
three source files and the locale packs at `origin/main` (`8145424b`)
for the "before" set. Measured with `getBoundingClientRect` /
`getComputedStyle` in Chromium.

| Reading | main | this PR |
|---|---|---|
| Header row height | 32 | 36 |
| Data row height (Compact, the default) | 32 | 36 |
| Standard, then back to Compact | — | 44, then 36 |
| Double-click 年营收 to edit (editor focused) | — | rows stay 36 |
| Column line (a body cell's right border) | 0px | 1px, same colour as
the row line (light and dark) |
| Footer, a personal view | 「计算」 on hover only | 「+ 添加统计」 in all four
columns; clicking one opens the calculation menu (合计 … 无) |
| Footer, the package's 所有记录 view | 「3 条记录」 only | 「3 条记录」 only (no
entry) |
| 商机 at 900×700, scrolled 120px sideways (frozen checkbox + name) | — |
at `b5445c21` (border): the frozen columns' lines gone; at `0a1f7470`
(inset shadow): both frozen lines stay, the name column's edge also
carries `FROZEN_EDGE_SHADOW`, nothing paints over the frozen cells
(light and dark) |

Screenshots (before / after, light and dark, package view and personal
view, the open footer menu, an edit in progress) are kept with the
card's evidence for the reviewer (`build-seat1/36048/`).
</details>

<details><summary>Local gates</summary>

- `pnpm --filter @object-ui/plugin-grid type-check`: pass.
- `vitest run packages/i18n/ + the two plugin-grid files above`: Test
Files 107 passed (107), Tests 1998 passed, 13 skipped.
- `playwright test e2e/list-frame-geometry-35548.spec.ts
--project=chromium` at `0a1f7470`: 8 passed.
- `overlap-check.mjs --branch=HEAD`: VERDICT clean (main and 6 PR
heads).
- NOT MEASURED locally: the full `packages/plugin-grid/` vitest run
(over the foreground limit here); CI's Test Core runs it.
</details>

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01L6bhgVphzAHrHnMrSMZGYb

---
_Generated by [Claude
Code](https://claude.ai/code/session_01L6bhgVphzAHrHnMrSMZGYb)_
<!-- signed: repo:objectstack#1 · os-sales ·
session_01L6bhgVphzAHrHnMrSMZGYb -->

---------

Co-authored-by: Claude <noreply@anthropic.com>
247257110 pushed a commit to 247257110/objectstack that referenced this pull request Nov 22, 2026
… drawer; lookup cells draw an edit button (objectstack-ai#36015) (objectstack-ai#36128)

<!-- claude-projects-attribution: {"github_login":"os-sales"} -->
_Requested by **Sales** · [project
thread](https://claude.ai/code/project/chan_01D5bWFY3rFzgJcytD5gD4Uu?thread=cmsg_01D5bWFY3rFzgJcytD5gD4UuLB1HMq57UcoRZFjpa8YhHZ)_

repo:objectstack#1 · os-sales · session_01L6bhgWkLah49N6UoD4CS3S

Fixes objectstack-ai#36015

The card's 11:13Z revision (maintainer: 「同意,改卡」): a single click on a
lookup chip opens that record in the side drawer, and a lookup cell has
a pencil button. objectstack-ai#36033 landed the rest of the card with `Refs objectstack-ai#36015`;
this PR is the lookup-cell part and closes the card.

Clause-②: yes (widening)
Metadata-protocol: none

## 维护者速读

- 列表里单击关联记录的小标签(比如联系人列表里的「客户」),右侧抽屉打开那条记录,列表不动。关掉抽屉后,滚动位置和选中的格子都还在。
- 点格子里小标签旁边的空白,只是选中这一格。一格里有几个标签,点哪个开哪个;选中后按 Ctrl+Enter / Cmd+Enter
在抽屉里开第一个;按住 Ctrl / Cmd 点,仍是新标签页整页打开。
-
关联格在鼠标移上去或已选中时,右边出现铅笔按钮,点了进入编辑(出现关联记录选择器),和双击、回车一样。没有编辑权限、字段只读、记录被锁时不出现。这个位置原来放「打开」图标,关联格不再画它。
- 人员的小标签(负责人、创建人,指向 `sys_user`
的关联)不变:单击只选中,选中后有「打开」图标,没有铅笔。邮箱、电话、网址、名称列都不变。手机上照旧整页打开。
-
抽屉的网址带上了记录和它的对象(`?recordId=…&recordObject=…`):刷新后抽屉还在,按后退关掉抽屉,和名称列「在侧边打开」一样。
-
风险:改到五个包(字段格子、表格、网格、列表、控制台抽屉);给宿主加了两个可选接口,不传时行为和以前完全一样;没有新文案键(铅笔用已有的「编辑」`table.edit`)。

## What changes

On a grid with the select-first cell model whose host opts in (today the
console's list page), a **reference cell** is a column of `lookup`,
`master_detail` or `tree` type whose `reference` is not `sys_user`.

**`@object-ui/fields`: `index.tsx`**

- `ReferencedRecordLink`'s anchor carries `data-record-object` and
`data-record-id`, the record the chip names. Nothing else changes in its
markup or its click.

**`@object-ui/components`: `context/gridCellSelection.tsx`, `index.ts`**

- `GridCellSelection` gains an optional `referenceCells?:
GridReferenceCells | null`. `GridReferenceCells` (exported as a type) is
`isReferenceColumn(columnKey)` (asked per column on every render, so it
answers from the column alone) and `openRecord(objectName, recordId)`.

**`@object-ui/components`: `renderers/complex/data-table.tsx`,
`dataTableCellSelection.ts`**

- New `recordChipAt` / `firstRecordChip`: the record a chip
(`a[data-record-link][data-record-object][data-record-id]`) at or around
the target names.
- In a reference cell, the select-first `onClickCapture` that objectstack-ai#36033
added still cancels a plain click on the chip and selects the cell, and
then calls `referenceCells.openRecord` for the chip clicked. A click
beside the chips only selects. Ctrl, Cmd, Shift and Alt clicks, a
non-primary button and a touch tap pass through to the link as before.
- A double-click on a reference chip does not also edit the cell (its
first click opened the record).
- Ctrl/Cmd+Enter on a selected reference cell opens its first chip
through `referenceCells.openRecord`; every other cell keeps objectstack-ai#36033's
behaviour.
- New `CellEditButton` in every reference cell while no editor is open:
a pencil at the cell's right edge, labelled with the existing
`table.edit` key, shown on cell hover (`group-hover/cell`) and while the
cell is selected. Its click calls `attemptEdit`, the same gate
double-click and Enter pass through. It is drawn only when
`readOnlyReasonOf(row, col)` is `null`; that is asked when the pointer
enters the cell and when the cell becomes selected, never per render
(the `describeCell` contract). It takes no focus. A reference cell does
not draw objectstack-ai#36033's `CellOpenButton`.

**`@object-ui/plugin-grid`: `ObjectGrid.tsx`**

- New runtime prop `openReferencedRecord?: (objectName, recordId) =>
void`. With `cellSelection` and this prop, the grid's
`GridCellSelection` carries `referenceCells`: `isReferenceColumn` reads
the column's field (`opensReferenceInPlace`: lookup / master_detail /
tree, reference not `sys_user`), `openRecord` is the prop.

**`@object-ui/plugin-list`: `ListView.tsx`**

- New host prop `openReferencedRecord`, handed to the grid only
(`object-grid` views), as `recordLinkAdornment` is.

**`@object-ui/app-shell`: `urlParams.ts`,
`views/objectViewRecordNavigation.ts`, `ObjectView.tsx`,
`objectViewListRenderer.tsx`, `objectViewRecordOverlay.tsx`,
`recordDrawerStack.tsx`**

- New reserved URL param `RECORD_DRAWER_OBJECT_PARAM` (`recordObject`),
listed in `RESERVED_URL_PARAMS`: the object of the drawer root's record
when it is not the listed object.
- `handleOpenReferencedRecord(objectName, recordId)`: the listed
object's record opens as the name cell's 「在侧边打开」 icon opens it
(`?recordId=` only); another object's sets `?recordId=` and
`?recordObject=` (a push, so Back closes it). A chip clicked while the
drawer is open swaps its root.
- `drawerRoot` is that record when `?recordObject=` names another object
the console knows and the server reads one record of
(`servesRecordRead`); it has no sibling set, so the drawer draws no ↑ ↓
counter. Unknown or unread object: no drawer.
- Closing the drawer, the name cell's icon and the page origin a phone
redirect builds drop `?recordObject=` with `?recordId=`.
- The drawer's ⤢ at a root of another object opens that object's page
(`expandedRecordPath`); the listed object's root keeps its list-relative
route and origin.
- On a phone a `?recordObject=` link answers with that record's own
page, as `?recordId=` does for the listed object.
- `RecordStackDrawer` takes `listObjectName`; the list marks the root's
row as active only when the root is a record of the listed object.
- `ObjectView` passes `handleOpenReferencedRecord` only when its list
has the drawer (`navOverlay.mode === 'drawer'`, not a phone), the same
condition as `openInPanel`. A list whose rows open nothing (`none`, a
list-only object) keeps objectstack-ai#36033's behaviour: the chip only selects.

**Field types this reaches:** `lookup`, `master_detail`, `tree` drawn
through `LookupCellRenderer` / `ReferencedRecordLink`, when the
referenced object is routable from the list (the chip is an anchor only
then). A `user` field (`UserCellRenderer`, avatars) draws no link and is
untouched.

**Readings (claim A–G):**

- **A.** Only grids whose host passes `openReferencedRecord` (the
console's object list). Every other host keeps objectstack-ai#36033's behaviour.
- **B.** Ctrl/Cmd+Enter on a lookup cell opens its first chip in the
drawer.
- **C.** Person cells (lookups to `sys_user`) draw no pencil and keep
objectstack-ai#36033's open button.
- **D.** A chip clicked with the drawer open swaps the drawer's root, as
the name cell's icon does.
- **E.** A lookup to the listed object itself opens the listed object's
drawer, with `?recordId=` alone.
- **F.** A chip with no link (unroutable, unread, restricted or
name-only) only selects; an editable cell still draws the pencil.
- **G.** The drawer's record and object live in the URL, as `?recordId=`
does (ui `AGENTS.md` objectstack-ai#8).

Docs: `content/docs/frontend/plugins/plugin-grid.mdx` § On an object's
list page (new bullet after the click bullet; the click bullet objectstack-ai#36033
wrote now leaves out the lookup chip a host opens in place). objectstack-ai#36033's
changeset is untouched; this PR's own changeset says it (Notes, below).

## Notes

- **objectstack-ai#36033's pending release note is left as it is**
(`.changeset/36015-list-cell-click-only-selects.md`, restored from the
base in `87d42cbd`; head `b59bf991`..`9c225b51` had added a sentence to
it as a declared correction, which kept `Check Changeset` red). This
PR's own note, `.changeset/36015-lookup-chip-opens-in-drawer.md`, now
says what it changes about that note instead: "This replaces, for lookup
chips on that page, the earlier change in this release where a plain
click on a lookup chip only selected its cell." The docs bullet in
`plugin-grid.mdx` keeps the L1-b N1 rewording.

## Tests

Added, each a top-level `describe` in the component's existing harness
file:

- `components/src/__tests__/data-table-select-first-35684.test.tsx`, "a
reference chip opens its record in place": a plain click on the chip
calls `openRecord` with the chip's record, cancels the default and
selects the cell, and a double-click on it opens no editor; a click
beside the chip only selects, Ctrl and Cmd clicks follow the link;
Ctrl+Enter opens the first chip through the host; the edit button is
hidden until the pointer enters the cell, then shown on hover and while
selected, opens the editor, and the cell draws no open button; a cell
the host says opens no editor draws no edit button; a column the host
does not name (a person) keeps the link behaviour and the open button;
control: with no `referenceCells` the chip only selects and no edit
button is drawn.
- `plugin-grid/src/__tests__/ObjectGrid.cellSelection-35684.test.tsx`,
"a lookup chip opens its record in the host's place": through
`ObjectGrid` with a routing host, the account chip carries
`data-record-object` / `data-record-id` and a single click calls
`openReferencedRecord('crm_account', 'a7')` without following the link;
the lookup cell's edit button opens its editor and the `owner_id`
(lookup to `sys_user`) cell draws none; a person chip only selects;
control without the prop.
-
`app-shell/src/views/objectViewRecordNavigation.listRows-27524.test.tsx`,
"a lookup chip opens the record it names in the list's drawer": the URL
params for another object and for the listed object, `drawerRoot` for
another object (no siblings), for an unknown object (`null`) and for the
listed object (siblings kept), close drops both params, ⤢ opens the
other object's page.

- After L1-b's S1 (fixed in `9c225b51`: a double-click on a chip opened
its record twice, so the console's router pushed the same URL twice and
the first Back left the drawer open). The grid opens a chip on a click's
first press only (`e.detail > 1` opens nothing), and
`handleOpenReferencedRecord` returns when the URL already names that
record of that object, which also covers a fast repeat click. Each test
below fails without the fix:
- `data-table-select-first-35684.test.tsx`, "a double-click on the chip
opens its record once": click, click (`detail: 2`), dblclick;
`openRecord` is called once and no editor opens.
- `objectViewRecordNavigation.listRows-27524.test.tsx`, "the record the
drawer already shows is not pushed again": no `setSearchParams` for the
record already shown, of another object or of the listed one; the same
id under another object still opens.
- same file, "in a router: a chip opened twice (a double-click) leaves
one history entry, and one Back closes the drawer": a declarative
`MemoryRouter` (it pushes on every navigate, the same URL included);
after two opens the URL names the record, and one `navigate(-1)` returns
to `?view=all`.

No existing test was rewritten or dropped.

Local runs. First on main `8145424b` merged with objectstack-ai#36033's head
`cefd3e31`, a full `pnpm build`:

- `vitest run packages/components/`: 501 files passed.
`packages/fields/`: 316 passed. `packages/plugin-grid/`: 298 passed.
`packages/plugin-list/`: 181 passed.
- `packages/app-shell/` in full did not finish inside this container's
50-minute window; the parts this diff touches ran:
`src/views/ObjectView*`, `src/views/objectView*`,
`src/views/__tests__/recordDrawer*`, `src/views/__tests__/recordPane*`,
`src/urlParams*`, `src/__tests__/`: 128 files passed.
- After objectstack-ai#36033 merged, the change was replayed on main `dc10b3b4` as one
commit (conflicts only in `objectViewListRenderer.tsx`'s memo
dependencies and the two appended describes of
`ObjectGrid.cellSelection-35684.test.tsx`, both sides kept), then a full
`pnpm build` and `vitest run` of `components/src/__tests__/data-table*`,
`plugin-grid/src/__tests__/ObjectGrid.cellSelection*`,
`app-shell/src/views/objectViewRecordNavigation*`,
`app-shell/src/views/__tests__/recordDrawer*` and `fields/src/`: 348
files passed (2 skipped).
- `type-check` in `components`, `fields`, `plugin-grid`, `plugin-list`,
`app-shell`: exit 0 (on both bases).
- `eslint` on the changed files: 0 errors.
- `overlap-check` on the pushed head `b59bf991`: clean against
`origin/main` (`dc10b3b4`, objectstack-ai#36033 merged) and the four open PRs sharing
a file (objectstack-ai#36114, objectstack-ai#36105, objectstack-ai#36096, objectstack-ai#36024).
- `87d42cbd`: `main` `6c7c6db2` merged in (clean).
`check-empty-changeset` and `check-changeset-no-major`: pass.
`overlap-check`: clean against `main` and objectstack-ai#36123; objectstack-ai#36133 (draft)
conflicts only on the one-line `useMemo` dependency list in
`objectViewListRenderer.tsx`, which each PR extends by one name; the
second to land merges `main`.

## Verification (browser)

CRM and Todo examples (`--fresh`), Console via Vite on this tree,
Chromium, 1280 light and dark, 375 light and dark. Screenshots and the
journey log: project folder `build-seat1/36015/PR2/` (`after-*`,
`after-journey.log`). The before state is objectstack-ai#36033's after state
(`build-seat1/36015/after-*`): a chip only selected its cell.

| Step | After |
|:--|:--|
| Contacts, hover the Account cell | pencil at the cell's right edge |
| Click the Acme Corp chip | drawer opens Acme Corp
(`?recordId=…&recordObject=crm_account`), the list stays, the cell is
selected |
| Close the drawer | params gone, the Account cell still selected |
| Click beside the chip | cell selected, nothing opens |
| Click the pencil | the lookup editor opens in the cell |
| Ctrl+Enter on the selected Account cell | drawer opens Acme Corp |
| Click the email text | cell selected, no navigation, open button in
the cell |
| Click the name | the contact's record page |
| Todo tasks, hover the Assigned To cell (lookup to `sys_user`) | no
pencil |
| Click the Dev Admin chip | cell selected, page stays, open button on
hover |
| 375 | phone cards (no grid), unchanged |

## Acceptance notes

1. Click a lookup chip: the drawer opens that record, the list stays,
closing it keeps scroll and selection: yes (browser).
2. Click beside the chip: the cell is selected, nothing opens: yes.
3. Hover a lookup cell: a pencil; it opens the cell's editor (the lookup
picker); none on a read-only field: yes (browser for the pencil and the
editor; read-only unit-pinned).
4. Person chips (owner): single click only selects: yes (browser, Todo's
Assigned To, a lookup to `sys_user`).
5. Ctrl/Cmd-click a chip opens the record in a new tab: yes (the click
passes through to the anchor; unit-pinned).
6. Email, phone, URL, Ctrl/Cmd+Enter on them and the name column:
unchanged from objectstack-ai#36033: yes.
7. This body lists the field types reached and the tests: above (none
rewritten).

---
_Generated by [Claude
Code](https://claude.ai/code/session_01L6bhgWkLah49N6UoD4CS3S)_

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01L6bhgWkLah49N6UoD4CS3S

<!-- signed: repo:objectstack#1 · os-sales ·
session_01L6bhgWkLah49N6UoD4CS3S -->

---------

Co-authored-by: Claude <noreply@anthropic.com>
247257110 pushed a commit to 247257110/objectstack that referenced this pull request Nov 22, 2026
…es and publishes it; layout and row colour join the list draft (objectstack-ai#35955 PR 2) (objectstack-ai#36123)

<!-- claude-projects-attribution: {"github_login":"os-sales"} -->
_Requested by **Sales** · [project
thread](https://claude.ai/code/project/chan_01D5bWFY3rFzgJcytD5gD4Uu?thread=cmsg_01D5bWFY3rFzgJcytD5gD4UuG6LywHEovAnGuZpiKQEc2W)_

repo:objectstack#1 · os-sales · session_01L6bhgWyeXh2Keywo6oK1Nn

Part of objectstack-ai#35955 (PR 2 of three: PR 1 objectstack-ai#36026 made a list change a draft;
PR 3 retires the server-side list preference and runs in parallel. The
card stays open.)

Clause-②: yes (widening) — five new `console.objectView.draft.*` keys in
every `@object-ui/i18n` locale pack (`saveToViewConfirmTitle`,
`saveToViewConfirm`, `saveToViewConfirmButton`, `savedForEveryone`,
`pendingDraft`); `@object-ui/plugin-list` `ListView` gains the optional
host prop `onRowColorChange` and two optional `viewDefaults` members,
`viewType` and `rowColor`; nothing removed or renamed
Metadata-protocol: none

## 维护者速读

- 共享视图上,能改这个视图的人(管理员,且视图所在的包接受保存)在「保存
▾」里也看到「保存到这个视图」:先问一次「所有用这个视图的人都会看到」,确认后存并立刻发布,提示「已保存,所有人可见」。选项菜单里的「保存」同一条路。
- 这个视图已有没发布的修改(谁存的都算)时什么都不写,提示先去视图设置里发布或放弃;不替任何人发布。保存人的行高、列宽不会写进共享视图。
- 显示面板的「布局」「行颜色」现在也是草稿:点开记录再回来还在,两条「保存」都会存进去,「放弃」还原成视图自己的。

## What changes

**Save to this view on a shared view** (`ObjectView.tsx`,
`objectViewViewCrud.tsx`, `runtime-metadata-persistence.ts`)

- Offered when `canSaveToSharedView`: not an environment list, not a
personal view, and the same test the footer calculation's pick uses
(`isAdmin && !activeViewPackageRefusesSaves && isSavedViewId(savedViews,
id)`), so a read-only package's view and the fallback tab never get it.
A personal view keeps its own save. The phone / narrow `Save ▾` is the
same component; the options menu's Save calls the same handler.
- It asks once through `confirmHandler` (`saveToViewConfirmTitle` /
`saveToViewConfirm` naming the view / `saveToViewConfirmButton`, cancel
`console.objectView.cancel`).
- The body is the view's own config with the draft laid over it
(`layListStateOverView`, split out of `buildPersonalViewConfig`), then
`buildViewConfigSaveBody`, the body the view settings panel saves. The
reader's row height is left out (`rowHeight: undefined` on the laid
preference, F5); column widths never travel.
- New `saveAndPublishRuntimeMetadata(type, name, body, ctx)`: a draft
write with the first-write pin (`{ mode: 'draft', ifNoneMatch: '*' }`),
then `publish`. A `409 METADATA_CONFLICT` on the write means a draft is
already pending; it resolves `'pending-draft'` and nothing is written or
published. A publish the server refuses discards the draft this save
wrote (`reset(type, name, { state: 'draft' })`) and rethrows. Caches are
invalidated and the draft ledger announced on both paths.
- `handleViewSaveAndPublish` shows the saved body at once
(`setViewDraft`) and lets `handleDraftBarChange` drop it when the
saved-views re-read lands (objectstack-ai#36031), so the list does not flash the old
sort. On `'published'` the list draft is dropped (`handleResetView`) and
"Saved, visible to everyone" is toasted; on `'pending-draft'` the draft
stays and `pendingDraft` is toasted.
- Using the server's pin instead of a client read of the draft closes
the read-then-write window the premise read named (P4). The window left
is between this save's draft write and its publish: the view settings
panel writes its draft without the pin, so a settings save landing in
those milliseconds would overwrite this draft and be published with it.
A known edge, not closed here: card objectstack-ai#36137.

**Layout and row colour join the draft** (`objectViewListRenderer.tsx`,
`ListView.tsx`, `personalViews.ts`)

- The renderer wires the published `onViewChange` to `listDraft.patch({
viewType })` and the new `onRowColorChange` to `listDraft.patch({
rowColor })`; picking the view's own value drops the entry. The draft's
values go to `ListView` as `schema.viewType` / `schema.rowColor`, and
the view's own through `viewDefaults.viewType` /
`viewDefaults.rowColor`, so the `layout` / `rowColor` parts and the
Display count still judge against the view after a remount.
- `ListView`: `onRowColorChange` fires on a pick in the row colour panel
(the rule in force) and on Clear (`null`), never at mount or for a
reset. Each new `viewDefaults` member is read only when its key is
present; without them nothing changes.
- Both saves read them: `PersonalViewListState.display` carries
`viewType` and `rowColor`; a layout switch retypes the view and fills
the kanban / gallery mirror from the saved columns when the block lacks
one (`IN_PLACE_COLUMN_MIRRORS`). Save as my view builds from
`listDraft.draft.viewType ?? activeView.type` and passes the row colour.

**i18n**: the five keys in all ten hand-written packs; zh-Hant
regenerated (`pnpm gen:zh-hant`).

**Docs**: `ui/packages/plugin-list/README.md` (new host-props section),
`content/docs/ui/views.mdx` (§ "A user's list state never writes the
view"), `docs/qa/platform-checklist/areas/records-forms.json`
`records-forms.adhoc-filter-sort-builder` revision 14 (steps[8],
acceptance[5], negative[4]; not loosened).

## Tests

- New `ObjectView.sharedViewSave-35955.test.tsx` (8): confirm, then
`save(... { mode: 'draft', ifNoneMatch: '*' })` then `publish`, body
carries the draft sort and the view's own row height `short` while the
reader's stored one is `tall`; cancel writes nothing; pending draft (409
`METADATA_CONFLICT`) writes nothing more and toasts; refused publish
resets the draft; a read-only package's view is not offered; layout and
row colour laid into the schema and `viewDefaults` and kept across a
remount; picking the view's own value drops it; the save retypes to
kanban with its columns mirror and the row colour.
- `runtime-metadata-persistence.test.ts` (+4): published; pending-draft;
a `409` with another code (`DESTRUCTIVE_CHANGE`) rethrows; refused
publish resets and rethrows.
- `ListView.personalization-28950.test.tsx` (+4): the `rowColor` part
judged against `viewDefaults`, a control without them,
`onRowColorChange` on pick and on Clear (`null`), and no call at mount.
- `ObjectView.personalViews-29635.test.tsx` (+1): the draft row colour
reaches the personal save and Save as my view.
- L1-b S1 (`ObjectView.sharedViewSave-35955.test.tsx` +3,
`ObjectView.personalViews-29635.test.tsx` +2): the confirm and Save as
my view's default name read the view's tab label (`listLabel`,
`viewTabLabel`), with a view that has no label and one whose label is a
locale map (plus a plain-label control on the confirm). Ablated: the raw
label turns the locale-map confirm case and both copy-name cases red. In
the shared-view harness a stored view with no label already arrives
named by its name, so that case is a pin, not a discriminator.
- `ObjectView.listUrlState-11860.test.tsx` (+2, G2): a reload whose
address was rewritten before the seed applies its `uf_*` state; a reload
on a record page then Back applies the list entry's `uf_*` state. Pins
of current behaviour, no behaviour change.

## Acceptance notes

- P3 (seat 14:28Z): any pending draft refuses, the saver's own earlier
draft too; the server does not record a draft's author.
- F5: a shared save never carries the saver's row height or column
widths; a personal save still carries the row height, as on main.
- The view settings panel and the footer calculation still save a shared
view as a draft that the view settings publish (ruling 7045525672
unchanged).
- Not touched: where column widths, row height and the view order are
stored (PR 3).
- Landing order with objectstack-ai#36133 (PR 3): both bump
`records-forms.adhoc-filter-sort-builder` to revision 14 and edit the
same section of `content/docs/ui/views.mdx`. Whichever lands second
renumbers to 15 and merges the two history entries.
- L1-b N1 taken: the pending-draft test is `isDraftVersionConflict` from
`DraftConflictDialog.tsx`, the predicate the other draft-door callers
use.

## Verification

CI and local runs at head `da8b797b`; the S1 commit's tests and type
check at `0ada6797`.

- CI: every check green (54 passed, 10 skipped by path), mergeable
clean. The first head (`433d7c02`) went red on four pins, each fixed in
its own commit: the `rowColor` firing control in
`object-view-unmirrored-keys-7779.test.ts` now reads `const
viewOwnRowColor = viewDef.rowColor ?? listSchema.rowColor;` (the relay
reads the view's own rule once, so the draft's can lie over it); the de
quote-pair count in `de-quote-pairing-3876.test.ts` goes 120 to 121 for
`saveToViewConfirm` („{{name}}“); three `viewDefaults` equalities in
`ObjectView.userListState-12418.test.tsx` gain `viewType`; a checker
narrowing in the new test is read through a cast. No pin was loosened:
each asserts the same thing at the new spelling.
- Local (`pnpm --dir ui exec vitest run` over
`app-shell/src/views/ObjectView*`, `runtime-metadata*`,
`personalViews*`, `listDraft*`, `plugin-list/src/__tests__/ListView*`):
237 files, 2290 tests; the only 3 failures were the `viewDefaults`
equalities above, 40/40 after the fix. `packages/i18n`: 105 files, 1962
passed. `packages/types` 7779: 236/236.
- `pnpm --dir ui/packages/app-shell run type-check` exit 0; `pnpm --dir
ui/packages/plugin-list run type-check` exit 0 (both include
`tsconfig.test.json`).
- eslint on every changed `ui/` source and test: 0 errors.
`check:i18n-keys`, `check:i18n-drift`, `check:control-bytes`,
`check:vi-mock-specifiers`, `check:vi-mock-override-shape`,
`check:metadata-write-doors`, `check:changeset-claims`,
`check:pending-changeset-literals`, `check:readme-exports`,
`check:new-line-citations` exit 0; `node
scripts/check-platform-checklist.mjs` OK.
- `node scripts/pm/overlap-check.mjs --base=origin/main`: clean against
main `dc10b3b4` and open objectstack-ai#36114, objectstack-ai#36105, objectstack-ai#36096, objectstack-ai#36024.
- Clause-② measured on the built
`ui/packages/plugin-list/dist/ListView.d.ts`: `onRowColorChange` and the
two `viewDefaults` members are added, optional; no member removed or
narrowed. The seat runs the declaration L2.
- Browser, at `0ada6797` (showcase `objectstack dev`, the `ui/` HMR
console pointed at it; checklist
`records-forms.adhoc-filter-sort-builder` steps[8]), on a shared view
the admin created and published (`showcase_task.team_tasks`, package
`com.example.showcase.custom`):
- admin, sort by Priority: Save offers "Save to this view"; the confirm
reads "Everyone who uses “Team tasks” will see these changes.";
confirming sends `PUT
/api/v1/meta/view/showcase_task.team_tasks?mode=draft` with
`If-None-Match: *` (200) then `POST …/publish` (200) and toasts "Saved,
visible to everyone"; Discard and Save go.
- a second reader who is not an administrator (`phone.demo@example.com`)
opens the view sorted by Priority, and after a sort of their own is
offered only "Save as my view". Control: on the read-only package's
`showcase_task.in_progress` the admin is offered only "Save as my view"
too.
- with a draft of the view already pending, the admin's confirmed save
gets `409` on the pinned `PUT`, sends no publish, toasts the
pending-draft hint and keeps Discard and Save; the pending draft is
still there afterwards and the live view unchanged.
- Not driven in the browser: the row height (F5) and the layout and row
colour round trip, pinned in the unit tests above.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01L6bhgWyeXh2Keywo6oK1Nn

---
_Generated by [Claude Code](https://claude.ai/code)_
<!-- signed: repo:objectstack#1 · os-sales ·
session_01L6bhgWyeXh2Keywo6oK1Nn -->

---------

Co-authored-by: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue size/xl tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

3 participants